// 这里只存放 用户相关的请求
import request from '@/utils/request'
// 封装注册请求
export function registerAPI (data) {
  return request.post('/h5/user/register', data)
}
// 封装登录请求
export const loginAPI = (data) => {
  return request.post('/h5/user/login', data)
}

// 获取登录的用户信息
export const getUserInfoAPI = () => {
  return request.get('/h5/user/currentUser')
}
